package com.scs.application.modules.dept.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.dept.dto.ApplyItemDTO;
import com.scs.application.modules.dept.entity.Apply;
import com.scs.application.modules.dept.entity.ApplyItem;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 */
public interface ApplyMapper extends IBaseMapper<Apply> {

    List<ApplyItemDTO> findDeptApply(@Param(value="beginDate") Date beginDate);

    void updateApplyAOmount(@Param(value="id") String id);


    List<Apply> getListByApplyItem(@Param(Constants.WRAPPER) QueryWrapper<ApplyItem> wrapper);

}
